package com.ssy.lingxi.message.model.vo;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Map;

/**
 * IM聊天记录 - VO
 * @author fhj
 * @date 2021/03/30
 * @version 2.0.0
 */
@Data
public class ImChatRecordVO {

    @ApiModelProperty(value = "ID")
    private Long ID;

    @ApiModelProperty(value = "消息类型")
    private String type;

    @ApiModelProperty(value = "消息内容")
    private Map<String, Object> payload;

    @ApiModelProperty(value = "接收方")
    private String to;

    @ApiModelProperty(value = "发送方")
    private String from;

    @ApiModelProperty(value = "消息的流向：in为收到的消息，out为发出的消息")
    private String flow;

    @ApiModelProperty(value = "消息时间戳（秒）")
    private Long time;
}
